#include<iostream>
using namespace std;
typedef long long LL;
LL n;
int main()
{
	cin >> n;
	if (n == 1) {
		cout << 2 << endl;
		return 0;
	}
	cout << 2 * n - 1 << endl;
	return 0;
}